a = int(input())
b = int(input())
h = int(input())

print((h * (a+b)) // 2)
